﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace Torch.WL.Web
{

    /// <summary>
    /// 储存在Session中的已登录会员的基本信息。
    /// </summary>
    [Serializable]
    public class UserSession
    {
        /// <summary>
        /// 初始化用户登录Session
        /// </summary>
        /// <param name="_loginId">用户ID</param>
        /// <param name="_loginname">编码</param>
        /// <param name="_roleid">角色ID</param>
        /// <param name="_groupid">分组ID</param>
        /// <param name="_islimit">是否授权限限制</param>
        /// <param name="_status">用户状态</param>
        public UserSession(int userId, string userName, ArrayList _roleid, int _groupid, bool _islimit, int _status)
        {
            this.UserID = userId;
            this.UserName = userName;
            this.RoleID = _roleid;
            this.GroupID = _groupid;
            this.IsLimit = _islimit;
            this.Status = _status;
        }

        /// <summary>
        /// UserID
        /// </summary>
        public int UserID;

        /// <summary>
        /// 编码
        /// </summary>
        public string UserName;
        /// <summary>
        /// 显示名
        /// </summary>
        public string ShowName;
        /// <summary>
        /// 角色数组
        /// </summary>
        public ArrayList RoleID;
        public int GroupID;
        public bool IsLimit;
        public int Status;
    }

}
